package com.sky.service;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {

    //新增菜品和对应的口味
    public void saveDishAndFlavor(DishDTO dishDTO);

    public PageResult page(DishPageQueryDTO dishPageQueryDTO);

    @AutoFill(OperationType.UPDATE)
    public void updateWithFlavor(DishDTO dishDTO);

    public DishVO getByIdWithFlavor(Long id);
    //菜品的批量删除
    void deleteBatch(List<Long> ids);

    public void updateStatus(Integer status,Long id);

    List<Dish> list(Long categoryId);

    List<DishVO> getByCategoryIdWithFlavors(Long categoryId);
}
